package com.sumainfor.wx.tenant.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.feign.OperationsFeignClient;
import com.sumainfor.wx.tenant.feign.Zfeign.ZpcGmioFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/5/18 10:57
 * @Description:
 */
@RestController
@RequestMapping("/with")
public class WithdrawalController {

    @Autowired
    OperationsFeignClient OperationsFeignClient;

    /**
     * 功能描述: 
     * 根据退租账单编号和租客编号获取退租账单
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/5/18 11:01
     */
    @ResponseBody
    @GetMapping("/getTanantWithdrawalMap")
    public JsonResult getTanantWithdrawalMap(@RequestParam Map<String,Object> params){
        return OperationsFeignClient.getTanantWithdrawalMap(params);
    }

    /**
     * 功能描述: 
     * 根据退租账单获取退租结算单
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/5/20 10:24
     */
    @ResponseBody
    @RequestMapping(value = "/getTanantWithdrBill",method = RequestMethod.GET)
    public JsonResult getTanantWithdrBill(@RequestParam Map<String,Object>params){
        return OperationsFeignClient.getTanantWithdrBill(params);
    }


    /**
     * 功能描述:
     * 根据退租账单编号获取退租物品清单
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/5/20 10:24
     */
    @ResponseBody
    @RequestMapping(value = "/getWithArticleList",method = RequestMethod.GET)
    public JsonResult getWithArticleList(@RequestParam Map<String,Object>params){
        return OperationsFeignClient.getWithArticleList(params);
    }

}
